/**
 *  额外的跨域转换
 * @param url
 * @returns {string}
 */
export function proxyApi(url) {
  let u='';
  //请求地址的处理
  (process.env.NODE_ENV=="development")?(()=>{
    u="/proxyApi"+url;
  })():(()=>{
    u=window.SITE_CONFIG.baseUrl+url;
  })();
  return u;
}

export function ceshi () {
  return 'xxx'
}

export function changeUrl(url){

  let ishttp=url.indexOf('http');
  let path=ishttp===-1?window.SITE_CONFIG.baseUrl+url:url;
  return path;
}
